﻿using Admin.NET.Application.Entity.Hr;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Core.Service;

public class EmployeeInput : BaseIdInput
{
    /// <summary>
    /// 状态
    /// </summary>
    public StatusEnum Status { get; set; }
}

public class PageEmployeeInput : BasePageInput
{
    /// <summary>
    /// 工号
    /// </summary>
    public string JobNum { get; set; }

    /// <summary>
    /// 姓名
    /// </summary>
    public string RealName { get; set; }

    /// <summary>
    /// 手机号
    /// </summary>
    public string Phone { get; set; }

    /// <summary>
    /// 查询时所选机构Id
    /// </summary>
    public long OrgId { get; set; }
}

public class AddEmployeeInput : Employee
{
    /// <summary>
    /// 工号
    /// </summary>
    [Required(ErrorMessage = "工号不能为空")]
    public override string JobNum { get; set; }

    /// <summary>
    /// 真实姓名
    /// </summary>
    [Required(ErrorMessage = "真实姓名不能为空")]
    public override string RealName { get; set; }

    /// <summary>
    /// 角色集合
    /// </summary>
    public List<long> RoleIdList { get; set; }

    /// <summary>
    /// 扩展机构集合
    /// </summary>
    public List<EmployeeExtOrg> ExtOrgIdList { get; set; }
}

public class UpdateEmployeeInput : AddEmployeeInput
{
}

public class DeleteEmployeeInput : BaseIdInput
{
    /// <summary>
    /// 机构Id
    /// </summary>
    public long OrgId { get; set; }
}